<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css">
    <script src="./assets/mui/js/mui.min.js"></script>
    <title>Document</title>
    <style>
        .addAddress{
            font-size: 14px;
            display:block;
            padding: 20px 0;
            color: #333;
            text-align: center;
        }
        .address-list .mui-media-body{
            font-size: 14px;
            color: #333;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
	<header class="mui-bar mui-bar-nav my-header">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">收货地址管理</h1>
		<a class="mui-icon mui-icon-search mui-pull-right"></a>
    </header>
    <!-- 底部 -->
	<nav class="mui-bar mui-bar-tab my-footer">
		<a class="mui-tab-item" href="home.html">
			<span class="mui-icon mui-icon-home"></span>
			<span class="mui-tab-label">首页</span>
		</a>
		<a class="mui-tab-item" href="catagory.html">
			<span class="mui-icon mui-icon-bars"></span>
			<span class="mui-tab-label">分类</span>
		</a>
		<a class="mui-tab-item" href="cart.html">
			<span class="mui-icon fa fa-shopping-cart"></span>
			<span class="mui-tab-label">购物车</span>
		</a>
		<a class="mui-tab-item  mui-active" href="user.html">
			<span class="mui-icon mui-icon-person"></span>
			<span class="mui-tab-label">会员中心</span>
		</a>
    </nav>
    
	<div class="mui-content">
        <a href="add-address.html" class="addAddress">添加收货地址管理</a>
        <ul class="mui-table-view address-list" >
            
            
        </ul>
	</div>
</body>
<script src="assets/zepto/zepto.min.js"></script>
<script src="js/address.js"></script>
<script src="js/public.js"></script>
<script src="assets/artTemplate/template-native.js"></script>
<script type="text/template" id="addressTpl">
    <% for(var i = 0; i<result.length;i++){%>
        
        <li class="mui-table-view-cell mui-transitioning mui-media">
            <div class="mui-slider-right mui-disabled dele" >
                <span class="mui-btn mui-btn-primary edit-btn" 
                 data-id="<%=result[i].id %>">编辑</span>
                <span class="mui-btn mui-btn-red deleteAdress" data-id="<%=result[i].id %>">删除</span>
            </div>
            <div class="mui-slider-handle">
                <a href="javascript:;">
                    <div class="mui-media-body">
                        邮 编:<%=result[i].postCode %>
                        收货人:<%=result[i].recipients %>
                        <p class='mui-ellipsis'><%=result[i].address %><%=result[i].addressDetail %></p>
                    </div>
                </a>
            </div>
        </li>
    <% } %>
</script>
</html>